package com.jj.config;

import com.jj.net.tcp.TCPContextImpl;
import io.netty.util.AttributeKey;

/**
 * Copyrights: QidianGroup@JJ
 *
 * @author: LuHan
 * @date: 2018/1/15, 10:58
 */
public class Constants {
    public static final String ENCODING = "utf-8";
    public static final int WAIT_SECONDS = 5;

    public static final int MAX_PACKAGE_LENGTH = 32*1024;

    public static final String USER_ID_KEY = "user.id";

    public static final AttributeKey<TCPContextImpl> TCP_CONTEXT_ATTRIBUTE_KEY = AttributeKey.newInstance(USER_ID_KEY);
}
